package com.patentbackend.patentmanage.service;

import com.patentbackend.patentmanage.dto.DepartmentDTO;
import com.patentbackend.patentmanage.entity.Department;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Optional;

public interface DepartmentService {
    Department create(DepartmentDTO departmentDTO);
    Department update(Long id, DepartmentDTO departmentDTO);
    boolean existsById(Long id);
    Page<Department> findAll(Pageable pageable);
    List<Department> findAll();
    Optional<Department> findById(Long id);
    void delete(Long id);
}